package com.javafamily.service;

import com.javafamily.bean.Pets;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface PetsService {
    boolean savePets(Pets pets);

    boolean removePetsById(Integer id);

    boolean modifyPets(Pets pets);

    Pets getPetsById(int id);

    List<Pets> listAllPets();

    List<Pets> findPetsByIdOrName(@RequestBody Pets pets);
}
